package cn.kgc.service;

import cn.kgc.pojo.*;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Service_dyb {

    Page<Employment> selEmployment(String positionName, String positionSort, String registranTime, String expirationDate);

    List<Organization> getOrganization();

    List<Position_dyb> getPositionById(Integer departmentid);

    Integer savePositionInfo(Employment_dyb employment);

    Integer upPositionInfo(Employment_dyb employment);

    Employment_dyb getEmploymentById(Integer employmentId);

    List<Position_dyb> getPositionByOrgan(String allName);

    Integer delEmployment(Integer employmentId);

    Position_dyb getPosition(@Param("positionId")Integer positionId);

    List<String> getPower(Integer id);

    List<HasPower> getHasPower();

    Boolean upHasPower(Integer id,String haspower);

    Boolean upPass(Integer id,String password);
}
